<?php


namespace app\crm\validate;


use think\Validate;

/**
 * Class Article
 * @package app\admin\validate
 */
class CustomerGrade extends Validate
{

    /**
     * 验证规则
     * @var string[]
     */
    protected $rule = [
        'name'               => 'require',
        'minimum'            => 'require|number',
        'maximum'            => 'require|number',
    ];

    /**
     * 错误信息
     * @var string[]
     */
    protected $message = [
        'name.require'               => '请输入级别名称',
        'minimum.number'             => '参数类型错误',
        'maximum.number'             => '参数类型错误',
    ];

    /**
     * 验证场景
     * @var string[]
     */
    protected $scene = [
        'create' => ['name', 'minimum', 'maximum'],
        'update' => ['name', 'minimum', 'maximum'],
    ];

}